home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer 2.0 / Internet Surfer 2.0 (Wayzata Technology) (1996).iso / pc / text / mac / faqs.347 < prev    next >
Text File  |  1996-02-12  |  28KB  |  783 lines

  1. Frequently Asked Questions (FAQS);faqs.347
  2.  
  3.  
  4.  
  5. QUESTION: What are the device minor/major numbers?
  6.  
  7. ANSWER: Here's a preliminary listing from Rick Miller <rick@ee.uwm.edu>:
  8.  
  9.              The Linux Device List
  10.      published by rick@ee.uwm.edu (Rick Miller, Linux Device Registrar)
  11.  
  12.      Many thanks to richard@stat.tamu.edu and Jim Winstead Jr.
  13.  
  14.  Majors:
  15.   0.  Unnamed .    (unknown) ....    for proc-fs, NFS clients, etc.
  16.   1.  Memory ..    (character) ..    ram, mem, kmem, null, port, zero
  17.   2.  Floppy ..    (block) ......    fd[01][dhDH]{360,720,1200,1440} or fd[01]
  18.   3.  Hard Disk    (block) ......    hd[ab] or hd[ab][1-?] (Extended>4)
  19.   4.  Tty .....    (character) ..    tty{0,1-8,63,64-127,128-?} or ttys{0-3,1-4}
  20.   5.  tty .....    (character) ..    special tty: owner of its calling process.
  21.   6.  Lp ......    (character) ..    lp[0-2] or par[0-2]
  22.   7.  Tape ....    (block) ......    t[0-?] (reserved for Non-SCSI tape drives)
  23.   8.  Scsi Disk    (block) ......    sd[0-?] or sd[0-?][0-?]
  24.   9.  Scsi Tape    (block) ......    st[0-?]
  25.  10.  Bus Mouse    (character) ..    bm, psaux (mouse)
  26.  11.  CD-ROM ..    (block) ......    scd
  27.  
  28.  Breakdown of minors by Majors:
  29.  ------------------------------
  30.  
  31.   0.  Unnamed .    (unknown) ....    for proc-fs, NFS clients, etc.
  32.      Minors???    (Not yet implemented???)
  33.  
  34.   1.  Memory ..    (character) ..    ram, mem, kmem, null, port, zero
  35.      0.  /dev/ram
  36.      1.  (block): RAM-Disk    (character): /dev/mem
  37.      2.  /dev/kmem
  38.      3.  /dev/null
  39.      4.  /dev/port
  40.      5.  /dev/zero
  41.  
  42.   2.  Floppy ..    (block) ......    fd[01][dhDH]{360,720,1200,1440} or fd[01]
  43.      Minors are [drive + [4 * type]] where drive 0-3 == A:-D: (floppy)
  44.      and type is:    0: Autodetect        4: 720k in 3.5"
  45.              1: 360k in 5.25" 1.2M    5: 360k in 5.25" 1.2M
  46.              2: 1.2M in 5.25" 1.2M    6. 720k in 5.25" 1.2M
  47.              3: 360k in 3.5"        7. 1.44M in 3.5" 1.44
  48.  
  49.   3.  Hard Disk    (block) ......    hd[ab] or hd[ab][1-?] (Extended>4)
  50.      0.  First HD (/dev/hda), whole drive including Master Boot Record.
  51.      1-4.  Partitions on the first HD.
  52.      5-8.  Logical partitions within an extended partition on first HD.
  53.      64.  Second HD (/dev/hdb), whole drive including Master Boot Record.
  54.      65-68.  Partitions on the second HD.
  55.      69-72.  Logical partitions within an extended partition on second HD.
  56.  
  57.      Notes:    BE *VERY* CAREFUL WITH /dev/hda AND /dev/hdb!!  These two
  58.          devices signify the *entire* *drive*, not just one partition.
  59.          The only things that use /dev/hda or /dev/hdb are things that
  60.          need to read/change the partition table (like fdisk).
  61.  
  62.          The names of the hard drives are not the same as under Minix.
  63.  
  64.          Linux doesn't order anything.  It perceives partitions in the
  65.          order in which they appear in the partition table.  Thus,
  66.          /dev/hd?1 may be physically after /dev/hd?2.
  67.  
  68.   4.  Tty .....    (character) ..    tty{0,1-8,63,64-127,128-?} or ttys{0-3,1-4}
  69.      0.  /dev/tty0:  This is the currently active Virtual Console.
  70.      1-63.  /dev/tty#:  Specific virtual consoles.
  71.      64-127.  /dev/ttys*:  Serial ports.
  72.      128-191.  /dev/pty[??]:  PTY Masters.
  73.      192-255.  /dev/pty[??]:  PTY Slaves.
  74.  
  75.      Notes:  There are several constants set in the kernel sources which
  76.          can be changed to compile a more customized kernel.  They're
  77.          found in [/usr/src]/linux/include/linux/tty.h:
  78.  
  79.              NR_CONSOLES    The number of virtual consoles.
  80.              NR_SERIALS    The number of serial lines.
  81.              NR_PTYS        The number of pty's.
  82.  
  83.   5.  tty .....    (character) ..    special tty: owner of its calling process.
  84.      0.  /dev/tty:  the tty that owns the process calling it.
  85.  
  86.   6.  Lp ......    (character) ..    lp[0-2] or par[0-2]
  87.      1-3.  Parallel (printer) ports.  (Increasable in include/linux/lp.h)
  88.  
  89.      Notes:    The number of line printers is defined by LP_NO which is
  90.          found in [/usr/src]/linux/include/lp.h.
  91.  
  92.   7.  Tape ....    (block) ......    t[0-?] (reserved for Non-SCSI tape drives)
  93.      This one's just getting started.  No minor numbers are yet assigned.
  94.      It's not even in the source code.
  95.  
  96.   8.  Scsi Disk    (block) ......    sd[0-?] or sd[0-?][0-?]
  97.      Minors numbers are [[16 * HostID] + partition]
  98.  
  99.      Notes:    The maximum number of SCSI drives is defined by MAX_SD
  100.          found in [/usr/src]/linux/kernel/blk_drv/scsi/sd.h.
  101.  
  102.         Additional note (Eric Youngdale): In the new scsi drivers
  103. there is no set maximum number of scsi disks, hence no need to fiddle
  104. with sd.h Everything autoconfigures as the system boots.
  105.  
  106. 9.  Scsi Tape    (block) ......    st[0-?]
  107.      Quoting from the source-code:
  108.                          void do_st_request(void)
  109.                          {
  110.                                  panic("There is no st driver.\n\r");
  111.                          }
  112.  
  113.      Notes:    For future reference, the maximum number of SCSI tapes
  114.          is defined by MAX_ST which is found in
  115.          [/usr/src]/linux/kernel/blk_drv/scsi/st.h.
  116.  
  117.         (E. Youngdale) The same is true here.  There is no longer any
  118. need to set MAX_ST, and it would be a bad thing to actually try.  Even
  119. though there is a MAX_SR in the cdrom code in the 0.98.5 kernel, the
  120. new scsi code effectively eliminates this as well.
  121.  
  122.  10.  Bus Mouse    (character) ..    bm, psaux (mouse)
  123.          (If I recall, X Windows requires that
  124.           /dev/mouse be linked to one of these...)
  125.      0.  /dev/bm:  (Logitec?) bus mouse
  126.      1.  /dev/psaux:  PS/2 mouse port
  127.      2.  /dev/bm:  MicroSoft bus mouse
  128.      3.  /dev/bm:  ATI XL bus mouse
  129.  
  130.  11.  CD-ROM ..    (block) ......    scd
  131.      Minors?
  132.  
  133. From: eric@tantalus.nrl.navy.mil (Eric Youngdale)
  134. Date: 17 Nov 92 16:25:40 GMT
  135.  
  136. > For the cdrom, the minors are just the devices
  137. > themselves.  If you have one cdrom drive, the minor is 0.  If you
  138. > have two, then the minors are 0 and 1.  Not much more to it than that.
  139.  
  140. >       For a SCSI tape, each physical device has two minor numbers
  141. > that are associated with it.  If you have two tape drives, then
  142. > minors 0 and 1 will refer to the first and second drives and the
  143. > tape will be rewound when the device is closed.  Minor numbers 128
  144. > and 129 (i.e. 128+n) also refer to the first and second physical
  145. > drives, but the tape will not be rewound after closing the device.
  146. > If you have one tape, you could create the devices with the
  147. > following commands:
  148.  
  149. > mknod /dev/rmt0 c 9 0
  150. > mknod /dev/nrmt0 c 9 128
  151.  
  152.  
  153. NOTE: all the numbers given are in decimal form (the one you can see if
  154. you perform ls -l on /dev).
  155.  
  156.  
  157. QUESTION: Could some one give me indication about the meaning of the
  158. IRQ's ?
  159.  
  160.  
  161. ANSWER: (alawrenc@sobeco.com:)
  162. Standard IRQ's :
  163.     IRQ 0 - Timer
  164.     IRQ 1 - Keyboard
  165.     IRQ 2 - Slave 8259 (AT)
  166.     IRQ 3 - COM 2 / COM 4
  167.     IRQ 4 - COM 1 / COM 3
  168.     IRQ 5 - (XT) Hard Disk, (AT) LPT2
  169.     IRQ 6 - Floppy Disk
  170.     IRQ 7 - LPT1
  171.  
  172. AT only IRQ  8 - Real Time Clock
  173.     IRQ  9 - Re-direct to IRQ 2
  174.     IRQ 10 - Not Defined
  175.     IRQ 11 - Not Defined
  176.     IRQ 12 - Not Defined
  177.     IRQ 13 - 80287
  178.     IRQ 14 - Hard Disk (AT)
  179.     IRQ 15 - Not Defined
  180.  
  181. QUESTION: (Chuck Boyer) Could some one clear up the devices meaning?
  182.  
  183. ANSWER: (Jim Winstead Jr)
  184. >port
  185.  
  186. This allows programs to access the hardware ports directly.  Not
  187. something you generally mess around with much.
  188.  
  189. >ptyp0-3
  190. >ptypa...tty
  191.  
  192. These are the pseudo-tty 'master' devices.  Each pty connection uses
  193. a slave-master set of tty devices.
  194.  
  195. >tty0...
  196.  
  197. tty[1-8] are the virtual consoles associated with Alt-F[1-8].  tty0 is
  198. the current virtual console (so writing something to tty0 goes to the
  199. current vc).
  200.  
  201. >tty64 I've figured out is the modem connection
  202.  
  203. Yes, that would correspond to COM1 under DOS.  However, the tty64 name
  204. is obsolete - ttys[1-4] should be used instead.
  205.  
  206. >ttyp0...
  207. >ttypa...
  208.  
  209. These are the pseudo-tty 'slave' devices.
  210.  
  211. >ttys1...
  212.  
  213. These are the serial devices.  ttys1 corresponds to COM1 under DOS,
  214. ttys2 corresponds to COM2, etc.
  215.  
  216.  
  217. VI.C Special Serial
  218. ~~~~~~~~~~~~~~~~~~~
  219. *** This section is maintained by Jim Gifford
  220. *** (jgifford@attmail,world.std}.com
  221. *** Last update October 1992.
  222.  
  223. Douglas E. Quale:
  224. This has come up a couple of times already (including the case of
  225. serial mice as well), but for the record stty acts on stdin not
  226. stdout.  Old stty's (from V7 through BSD4.3) used stdout, but this is
  227. suboptimal and doesn't conform to POSIX.  The GNU stty you are likely
  228. using on Linux uses stdin, as does the stty distributed with BSD
  229. Networking Release 2.  (Also, ``stty -a'' is more informative about
  230. possible parameters, although it's pretty hard for me to remember what
  231. 90% of that stuff does without refering to the man page.)
  232. Jim Gifford:
  233. However, there are a few older (of mysterious origin) stty's that work
  234. on stdout(I have one myself!)
  235.  
  236. QUESTION: Is there a list somewhere where I can get help with serial
  237.    communications under Linux?
  238.  
  239. ANSWER: (Jim Gifford -- jgifford@world.std.com)
  240.    There is a list for the discussion of serial communications under
  241.    Linux.  It is for problems, drivers, new developments, etc... with
  242.    the Linux serial devices. The list is: linux-serial@stolaf.edu
  243.    To join, send mail to linux-serial-request@stolaf.edu
  244.    I hope that this list will prove beneficial to the improvement of
  245.    Linux. This list is maintained by Michael K. Johnson as
  246.    linux-serial-request@stolaf.edu
  247.  
  248. QUESTION: When I run kermit under Linux, I get "Warning, Read access
  249.    to lock directory denied". What am I doing wrong?
  250.  
  251. ANSWER: Nothing, you just need to create /usr/spool/uucp (kermit 4.6?)
  252.    or /usr/spool/locks (this is for the kermit5A), which is where kermit
  253.    like to lock files.
  254.  
  255. QUESTION: What are the major, minor numbers for the serial ports under linux?
  256.  
  257. ANSWER:   Major 4, Minor :
  258.    64      /dev/ttys0      - com1
  259.    65      /dev/ttys1      - com2
  260.    66      /dev/ttys2      - com3
  261.    67      /dev/ttys3      - com4
  262.  
  263. QUESTION: can anyone give me a sample /etc/inittab entry for login
  264.    from a pc attached to serial line /dev/ttys2?
  265.  
  266. ANSWER: "Humberto speaking :), updated by Rick Miller"
  267.    First set up the modem to turn off echo and enable auto answer, I do
  268.    this in kermit by connecting to the modem and typing "ate0s0=1"
  269.    followed by enter (w/o quotes). Then setup inittab to spawn getty on
  270.    the modem
  271.    ttys2:vt100:/etc/getty -m 1200 ttys2
  272.      (Replace "vt100" with the name of the /etc/termcap entry for the
  273.       terminal type you will use, or use "dumb" if you don't have one.)
  274.  
  275.    Then it should work. Some modems can be permanently set to disable
  276.    echo and set auto answer, see your manual.
  277.  
  278.    Jim Weigand says:
  279.      disable all messages. This will prevent getty from hanging up
  280.    your modem.
  281.    Set       For:
  282.    ATE0      No echo
  283.    ATQ1      No messages
  284.    ATS0=2    Answer 2nd ring
  285.    ATS7=60   1 minute to answer (shorter if 2400 baud)
  286.    You can use kermit to set these. Do an AT&W to save for power-up.
  287.  
  288.    Michael K. Johnson says:
  289.    If you would rather not save these commands as defaults to come up
  290.    on power-up, perhaps because you want to use your current modem
  291.    settings under a DOS communications package, you can also shove
  292.    these command out ttys? from /etc/rc (or /etc/rc.local) using
  293.    the command:
  294.       echo "<modem_settings>" > /dev/ttys?
  295.  
  296. QUESTION: How do I set parameters like parity for serial login?
  297.  
  298. ANSWER: Use stty and redirect input from the serial line.
  299. ex: stty parodd < /dev/ttys2 which gives ttys2 odd parity.
  300. type stty -a to get an idea of possible parameters.
  301. Or 'man stty' as well :)
  302.  
  303.  
  304. VII. MORE HINTS
  305. ===============
  306.  
  307. This part try to keep track of the different information
  308. that appeared in comp.os.linux and on the list since beginning of
  309. March. I tried to update it for KERENL_VERSION, so there might be some
  310. mistakes. Moreover take care to use the correct library and include
  311. stuff, and the ad-hoc gcc you use !!!
  312.  
  313.  
  314. QUESTION: How can I backup my Hd under Linux ?
  315.  
  316. ANSWER: I know at least two ways. One possibility is tar and mtools,
  317. another possibility is the diskbackup/diskrestore of Diamano Bolla
  318. (digest37 vol. #2) which saves big hd to floppies using the
  319. stdin/stdout. These utilities have been uploaded to the major sites in
  320. file disksplit.tar.Z.
  321. An example usage (Roger Binns) is:
  322.  
  323. tar cvf - bin dev usr etc .. | compress | diskbackup
  324.  
  325. and to restore:
  326.  
  327. diskrestore | uncompress | tar xvf -
  328.  
  329. BTW: if you are on Ethernet you could send your files via tar..|rsh (tar...)
  330. or even via NFS to a host which is regularly backed up !
  331.  
  332.  
  333. QUESTION: Where is 'which' ?
  334.  
  335. ANSWER: It depends on the sh you are running:
  336. in bash     'type -path'
  337. in tcsh        it's a builtin
  338.  
  339. for rc you can try the following (untested by me) script from
  340. Kevin Brown:
  341.  
  342. #!/bin/sh
  343. for i in `echo $PATH | sed 's/:/ /g'` ; do
  344.   for j in ""$@" ; do
  345.     if test -x "$i/$j" ; then
  346.        echo "$i/$j"
  347.          fi
  348.   done
  349. done
  350.  
  351. QUESTION: How to use setterm: for the novice?
  352.  
  353. ANSWER:The setterm utility provides access to most of Virtual Consoles
  354. (VCs) functionality.  You can set your screen up to blank at 10
  355. minutes using:
  356.             setterm -blank 10
  357.  
  358. You can set colors, and clear the screen.  For a full list of commands,
  359. just type "setterm" with no arguments.
  360.  
  361. There are a few tricks with the screen dumper can really make VCs go a
  362. long way.  Here are a few of the common ones that I use:
  363.  
  364.         setterm dump
  365.  
  366. Dumps the contents of the current VC to screen.dump (in the current dir).
  367.                     
  368.         setterm dump 4
  369.                 
  370. Dumps the contents of VC 4 to screen.dump
  371.         
  372.         setterm -file mydumpfile -dump 4
  373.  
  374. Dump the contents of VC 4 to the file mydumpfile
  375.  
  376.         setterm -file /dev/tty0 -dump 4
  377.  
  378. Dumps the contents of VC 4 to the current VC.
  379.                     
  380.         setterm -file /dev/tty4 -dump
  381.  
  382. Dumps the contents of the current VC to VC 4.
  383.         
  384.         setterm -file /dev/ttys1 -dump
  385.                 
  386. Dumps the contents of the current VC to the serial port.
  387. Handy if you are logged on and want to paste a screen full without
  388. having to resort to doing a file transfer.
  389.  
  390.         setterm -file mydumpfile -append 4
  391.                 
  392. Appends to instead of overwriting the dump file.  Useful if you
  393. have several screens you wish to concatenate.
  394.  
  395.  
  396. QUESTION: I've tried clear/reset which exist on most of unix but it
  397. doesn't work, have I missed something?
  398.  
  399. ANSWER: setterm -clear or setterm -reset will solve your missing.  For
  400. clear, you can also write a small script (which use the cl: part of
  401. /etc/termcap wrt your TERM), or use bash where ctrl-l will do it for
  402. you.
  403.  
  404.  
  405. QUESTION: I know there are VC, but where is the setterm stuff?
  406.  
  407. ANSWER: It's in the current distribution (i.e. on the images), the
  408. source can be found in virtcons.tar.Z at nic.
  409.  
  410.  
  411. QUESTION: I know there are shared libraries; does there exist an easy
  412. way to check an executable for sharing ?
  413.  
  414. ANSWER: (Josh Yelon & HJ Lu)
  415. (J.Y.) An executable which shares a library is linked with an
  416. (ordinary, non-shared) "stub" version of the library. One of the first
  417. thing this stub does (when the executable is run) is to ask the kernel
  418. to load the (big) "shared version" of the library (which is usually
  419. named /lib/lib.XX.XX) The upshot of this is that in the code for the
  420. stub (part of the executable), is the string "/lib/lib.XX.XX"; which
  421. can be searched by using 'strings' or 'grep'.
  422. (HJ. L.) if you have gcc2.11a or later the shared image is changed to
  423. /lib/libxxxx_vyy_zzz. And you should better use nm to find
  424. "__shared_lib" (nm failed on stripped executable). You can also write
  425. a function for "file", which can even check the version number ....
  426.  
  427. (Claude Morin:) There exists at tsx-11 ldd.tar.Z If you follow
  428. the instructions, you will be able to type "ldd <executable>" to List
  429. the Dynamic Dependencies of the executables. In other words 'ldd'
  430. prints the name of the shared libraries needed by the executable,
  431. nothing appears for static one.
  432.  
  433. QUESTION: What is the rdev program provided in the images?
  434.  
  435. ANSWER: It's a program from Werner Almesberger of ETH. With no
  436. argument it prints the first line of /etc/mtab. With one argument, a
  437. boot-image, it prints the device configured as the root device, and
  438. with two arguments, a boot image and a device, it sets the device as
  439. default root in the specified image.
  440.  
  441.  
  442. QUESTION: How to start Linux from drive B?
  443.  
  444. ANSWER: There is a DOS utility called boot_b.exe (look at DOS ftp).
  445. Another simple way is to open the box and invert the cables.
  446.  
  447.  
  448. QUESTION: The program boot_b works fine /but/ once the first disk is
  449. read the system go back to the first drive, any hints?
  450.  
  451. ANSWER: Yes, change the bootimage in just the same way that you change
  452. it to boot on the hard drive, execept that the major/minor pair is
  453. different. All these information are in the file INSTALL-0.10.
  454. Remember that if you use a sun or other endian machine, you will need
  455. to reverse the byte order when you run the filter program (also in the
  456. same file).
  457.  
  458.  
  459. QUESTION: How can I get Linux to boot directly from the harddisk?
  460.  
  461. ANSWER: (Rick) The best option right now is LILO version ALPHA.6. It
  462. has been generally agreed that the days of using "shoelace" are at an
  463. end.
  464.  
  465. QUESTION: I use shoelace, but I want to change my root partition, what
  466. is the process to get rid of it?
  467.  
  468. ANSWER: With Norton utility you can put back a standard boot sector.
  469. Another possibility is to restore the old boot sector (the one you
  470. should have backup *before* installing shoelace).
  471.  
  472.  
  473. QUESTION: Sometimes, when I want to remove a directory, I get an error
  474. message, is it a (known) bug?
  475.  
  476. ANSWER: No, There is no bug at all, you probaly have another shell
  477. on another VC whose working directory is either the one you try to
  478. remove, either a subdirectory of it.
  479.  
  480.  
  481. QUESTION: I'm looking for init, getty, login, passwd stuff, where
  482. can I find them?
  483.  
  484. ANSWER: You should find it in shadow.tar.Z (only sources), at least
  485. at tsx in the usr.bin directory. Many people have reported some troubles
  486. with the *OLD* shadow-passwd (shadow-bin.tar.Z and shadow-src.tar.Z, so
  487. do not use them anymore); an alternative might be the mcc-interim
  488. which contains standard passwd binary. There is also the Peter Orbaek's
  489. admutil-1.?.tar.Z and poeigl-1.?.tar.Z which contains source for
  490. shutdown, su, chsh, passwd and a system V init compatible.
  491.  
  492.  
  493. QUESTION: How can I setup a user account other than root ?
  494.  
  495. ANSWER: You can either use the adduser program, either do it manually.
  496. In the later case, you have to:
  497. a) edit /etc/passwd as root and add a line of the following format:
  498. user:passwd:uid:gid:user name:home directory:login shell
  499.  
  500. user is the login name; uid is the numeric user id, it should be
  501. unique; gid is the numeric group id, this number should correspond to
  502. an entry in /etc/group. The passwd field should be left blank 'cause
  503. it is stored in an encrypted form [to set this field just use the
  504. passwd program].
  505. example
  506. faq::200:5:Marc-Michel:/home/faq:/bin/sh
  507. b) Still as root, you shoud now create the home directory and set the
  508. correct ownership.
  509. mkdir /home/faq
  510. chown faq /home/faq
  511. chgrp 5 /home/faq
  512.  
  513.  
  514. QUESTION: I've been trying to get Linux to run on my [3/4]86 box. It
  515. can't even boot. Any suggestions?
  516.  
  517. ANSWER: The most common error/problem is writing the bootimage to a
  518. low density disk. It fits, but the bootstrap code will only recognize
  519. high density disk. So try to format explicitely disk as high density:
  520. - for 3.5",  'format a: /n:18 /t:80 '
  521. - for 5.25", 'format a: /n:15 /t:80 '
  522.  
  523.  
  524. QUESTION: Does there exist games, languages (other than C), and
  525. anything which make the system more friendly?
  526.  
  527. ANSWER: Yes, among other things there are rogue and yahtzee; TeX;
  528. Prolog, Perl.. but in general, if you want some extra tool port it to
  529. Linux this is also a good beta-testing exercice.
  530.  
  531.  
  532. QUESTION: Whenever I use uemacs 3.1X on a symlink, the symlink does
  533. not exist anymore, why?
  534.  
  535. ANSWER: (Tristram Mabbs) Since ue3.10, uemacs uses 'safe save' mode,
  536. writing the file to a temporary and moving it OVER the original. In
  537. the process, this deletes the original. To prevent this just add the
  538. following in your emacs '.rc' file: set $ssave FALSE
  539.  
  540.  
  541. QUESTION: Uemacs doesn't work anymore with 0.95a, whenever I want to
  542. save a file; what can I do?
  543.  
  544. ANSWER: ^S and ^Q are used for flow control. One solution is ^X^W
  545. followed by the    filename, or M-X save-file, try also ^XS it could work
  546. for some version (not mine). Another possibility,
  547. if you have download the stty.tar.Z file, is to do stty -IXON
  548. before you first use uemacs (this can be included in your .profile).
  549. And the last is to recompile the Peter Orbaek init-1.2 package.
  550.  
  551.  
  552. QUESTION: I have an SVGA, but Linux detect an EGAc/EGAm; is it normal?
  553.  
  554. ANSWER: (Jim Winstead) This is correct actually. You have an EGA+ card
  555. (SVGA) with a Color/Mono monitor. The only four possibilties are EGAc,
  556. EGAm, *MDA and *CGA (according to the code in
  557. kernel/chr_drv/console.c).
  558. The true test, if Linux detects your video card, is if you press
  559. <RETURN> at the "Press <RETURN> to see SVGA- ..." boot-time message.
  560. If you have a SVGA  recognized card, it will ask you to choose a
  561. screen size. If not detected, the default is 80x50 mode.
  562. BTW if you have no SVGA, press the <space> and you are in 80x25 mode.
  563.  
  564. If you have dowloaded the kernel, you can automatically skip this
  565. query at boot-time if you set the SVGA_MODE variable in the main
  566. Makefile before compiling a new bootimage.
  567.  
  568.  
  569. QUESTION: How can I change the keyboard repeat rate?
  570.  
  571. ANSWER: (Michael K Johnson) In boot/setup.S there are the lines:
  572. ! set the keyboard repeat rate to max
  573.     mov    ax,#0x0305
  574.     mov    bx,0x0000
  575.     int    0x16
  576.  
  577. If you don't want to change the repeat rate at all, just comment out
  578. these lines. If you want something in the middle, change the
  579.     mov    bx,0x000
  580. by    mov    bx,0x??yy
  581. where ??yy is determined by (Ralf Brown's interrupt list)
  582. bh= delay value (0x00 = 250ms to 0x03= 1000ms (one sec))
  583.     this is the delay before the repeat is performed
  584. bl= repeat rate (0x00 =30/sec to 0x1f=2/sec; 0x0c=10/sec [default])
  585.  
  586.  
  587. QUESTION: I compiled fdformat.c and ran it on 1.44Mb and 1.2Mb, the
  588. results are unreadable, any clue?
  589.  
  590. ANSWER: (M. Pereckas) fdformat only low-level formats the disk. to use
  591. the fdformatted disk with DOS filesystem, run mformat on the disk.
  592. Mformat writes DOS filesystem information but is unable to low-format
  593. :). In order to put a Linux filesystem on a (low)formatted disk you
  594. have to mkfs it.
  595.  
  596. QUESTION: Is it possible to disable the 3-fingers salute
  597. (ctrl-alt-del) ?
  598.  
  599. ANSWER: Yes, in kernel/sys.c you can read the following:
  600.  
  601. /*
  602.  * this indicates wether you can reboot with ctrl-alt-del: the deault is yes
  603.  */
  604. static int C_A_D = 1;
  605.  
  606. there is also a small utility written by Linus in digest242 vol#2
  607.  
  608.  
  609. QUESTION: Could some one explain the information provided at boot-time?
  610.  
  611. ANSWER: (Jim Winstead Jr)
  612. > serial port at 0x03f8 is a 16450
  613. > serial port at 0x02f8 is a 16450 (what's that the uart chip?)
  614.  
  615. Right, the last number should either be 8250, 16450, 16550, or 16550a,
  616. and on the two 16550 models, it will report that FIFO's have been
  617. disable (16550) or enabled (16550a).
  618.  
  619. > 8 virtual consoles (that's how many alt-F's I can get going?
  620. >      but only F1-4 actually work)
  621.  
  622. You can get sessions running on Alt-F[1-8], but the 'standard'
  623. /etc/inittab only runs getty/login on Alt-F[1-4].  You can start
  624. sessions on the other consoles by using 'doshell' or adding lines to
  625. /etc/inittab.
  626.  
  627. > 4 pty's (are these the consoles F1-4?)
  628.  
  629. No, those are 'pseudo' ttys, which programs like MGR use to simulate
  630. tty connections.  That's probably a gross over-simplification, but it
  631. gives you the general idea, I think.  :)
  632.  
  633. > p_init: lp1 exists (0) (is that the (l)ine (p)rinter?)
  634.  
  635. Right.
  636.  
  637.  
  638. QUESTION: What is the meaning of files ended by .T.Z (or .taz) ?
  639.  
  640. ANSWER: The suffix Z is for compressed files (to uncompress them use
  641. the command `uncompress file.Z`).
  642. The suffix T indicates a "tar file" the usual suffix is tar but, the
  643. 14 chars filename limit of the Minix filesystem makes it cumbersome to
  644. use .tar.Z (to untar a file ended by .T, use the command
  645. `tar options file.T` (see the man page for more details).
  646.  
  647. For the .taz file, change them as .T.Z and go-ahead.
  648.  
  649.     
  650. QUESTION: I have upgraded the kernel from XX to YY (XX > YY), however the
  651. login screen still says YY.
  652.  
  653. ANSWER: Just change the message in one of these files: /etc/issue and
  654. /etc/motd. The former contains the message before the login, the later
  655. is the one after you are logged in.
  656.  
  657. QUESTION: What is doshell good for ?
  658.  
  659. ANSWER: It's an old program provided in the early Linux version (0.12)
  660. when the getty was not already there, it spawns a shell on any tty's.
  661. (Mattew Gream): I do this quite often ( getty on tty1, 2, 3 and my
  662. rc.local spawns a shell on tty4 as follows
  663.      '/usr/bin/doshell /dev/tty4 /bin/tcsh &'
  664.  
  665.  
  666. QUESTION: I don't have the kernel sources, how can I change the keyboard
  667. language?
  668.  
  669. ANSWER: You can use the fixkbd program written by
  670. laurentj@hpgnse2.grenoble.hp.com. Its purpose is to fix the
  671. keyboard map used in your kernel image. It works more or less a la
  672. "rootdev" (or rdev).
  673.  
  674.  
  675. --
  676. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  677. #    LaBRI              |                        #
  678. #  351 cours de la Liberation    |  e-mail:  corsini@labri.greco-prog.fr    #
  679. #  33405 Talence Cedex         |                        #
  680. #                   |                        #
  681. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  682. --
  683.   There will be some sig, once our local net will be reliable.
  684.         Right now I rather stay anonymous.
  685. Xref: bloom-picayune.mit.edu comp.os.linux:18316 news.answers:4212
  686. Path: bloom-picayune.mit.edu!enterpoop.mit.edu!usc!zaphod.mps.ohio-state.edu!cs.utexas.edu!uunet!mcsun!julienas!corton!geocub!labri.greco-prog.fr!corsini
  687. From: corsini@labri.greco-prog.fr
  688. Newsgroups: comp.os.linux,news.answers
  689. Subject: Linux Frequently Asked Questions 3/4 [monthly posted]
  690. Summary: Linux, a small and free unix for 386-AT computers.
  691. Message-ID: <PART3_722647309@geocub.greco-prog.fr>
  692. Date: 24 Nov 92 23:22:11 GMT
  693. Expires: Sat, 19 Dec 1992 23:00:00 GMT
  694. References: <PART2_722647309@geocub.greco-prog.fr>
  695. Sender: corsini@greco-prog.fr (Marc-Michel CORSINI)
  696. Reply-To: linux@numero6.greco-prog.fr
  697. Followup-To: poster
  698. Organization: Greco Prog. CNRS & LaBRI, Bordeaux France
  699. Lines: 1104
  700. Approved: news-answers-request@MIT.Edu
  701. Supersedes: <PART3_722567366@geocub.greco-prog.fr>
  702.  
  703. Archive-name: linux-faq/part3
  704. Last-Modified: 92/11/20
  705. Version: 1.11
  706.  
  707. *********************************************************
  708. *                            *
  709. *   Answers to Frequently asked questions about Linux   *
  710. *                            *
  711. *********************************************************
  712.  
  713. This post contains Part 3 of the Linux FAQ (4 parts).
  714. It must be read *after* the 2 first parts.
  715.  
  716. ===================================8<====>8============================
  717. CONTENTS (of this part)
  718.  
  719.     VIII.    FEATURES            (part3)
  720.     IX.    GCC MISC INFORMATION        (part3)
  721.     X.    SCSI SPECIAL            (part3)
  722.  
  723. ===================================8<====>8============================
  724.  
  725.  
  726.  
  727. VIII. FEATURES
  728. ==============
  729.  
  730. QUESTION: I've read that linux has virtual consoles, what must I do to
  731. get them?
  732.  
  733. ANSWER: Yes there are, you can access them with the left <alt>-key
  734. together with <Fn>-key. With the Linux Images distribution, 4 consoles
  735. are available, getty runs on them.
  736. Notice that they are NOT accessible when running X (contrary to some
  737. commercial unices).
  738.  
  739. QUESTION: When Linux boots, I get the following message "8 virtual
  740. consoles"; how can I acess to the 5-8 vc's ?
  741.  
  742. ANSWER: If you want the getty to run on the 5-8, you should add the
  743. corresponding entries in /etc/inittab. You can also just run sh on
  744. them by using the doshell soft.
  745. And then in either case, the ALT-F[5-8] will access the corresponding
  746. vc.
  747.  
  748. QUESTION: What kind of shell is /bin/sh ?
  749.  
  750. ANSWER: It's the Bourne Again Shell, bash-1.12.3 and
  751. compilation was straightforward, just "make"
  752. that's all or nearly.
  753. BTW There does exist different shells for Linux, these are:
  754. bash, rc, zsh, tcsh and pdksh (a korn shell).
  755.  
  756.  
  757. QUESTION: Does there exist a man page for **** ?
  758.  
  759. ANSWER: Download man.tar.Z from your favorite linux ftp site, there is
  760. most of the fileutils man page -- either **** or g****, example there
  761. is nothing on ld, but there is for gld :) --, check the whatis
  762. database provided. The files in the cat1 dir are pre-formatted man
  763. pages that the man program can use. Quite recently the man pages for
  764. section 2 have been written (thanks Drew) and can be found, at least
  765. at tsx-11 in /pub/linux/docs/man/man2.tar.Z
  766.  
  767. Also manpages are in the SLS on the b? disks.
  768.  
  769. BTW there is nroff and groff for Linux. Cawf 2.0 works just
  770. fine for simple man pages, and a partial ms support too.
  771.  
  772.  
  773. Moreover Michael Johnson is the coordinator for man pages under Linux,
  774. he is looking for volunteers, so contact the DOC Channel.
  775.  
  776. QUESTION: Is there a simple man package (groff is too big):
  777.  
  778. ANSWER: "Cawf -man" also "fm -m" (Al Clark) tsx-11 in
  779.      /pub/linux/binaries/usr.bin/fm.tar.Z
  780.  
  781.  
  782. QUESTION: What are the editors available in linux?
  783.